package com.example.apiproject.controller;/*
    @date 2024/2/17 - 19:59
    @author porter
 */

import com.example.apiproject.service.ArticlesLabelsService;
import com.example.apiproject.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/articlesLabels")
public class ArticlesLabelsControler {
    @Resource
    private ArticlesLabelsService articlesLabelsService;
//    查询所有标签
    @GetMapping("/all")
    public R getAllLabels() {
        return R.ok().put("res",this.articlesLabelsService.queryAllLabels());
    }
}
